import { network } from '@/utils';
import { CouriersListParams } from './data';

import { business } from '../../../../../config/Apis';

export async function queryCabinetDeliveryWhitelist(params: CouriersListParams) {
  return network.get(business.whitelist_list, {
    params,
  });
}

export async function operDeleteCabinet(params: any) {
  return network.deleter(business.whitelist, {
    params,
  });
}

export async function operAddWhiteList(params: any) {
  return network.post(business.whitelist, {
    data: params,
  });
}

export async function operImportWhiteList(params: any) {
  return network.post(business.whitelist_import, {
    body: params,
  });
}
